import service from '@/utils/request'

// @Tags ZSHRMEmployee
// @Summary 创建hr用户
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ZSHRMEmployee true "创建hr用户"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /zSHRMEmployee/createZSHRMEmployee [post]
export const createZSHRMEmployee = (data) => {
  return service({
    url: '/zSHRMEmployee/createZSHRMEmployee',
    method: 'post',
    data
  })
}

// @Tags ZSHRMEmployee
// @Summary 删除hr用户
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ZSHRMEmployee true "删除hr用户"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /zSHRMEmployee/deleteZSHRMEmployee [delete]
export const deleteZSHRMEmployee = (params) => {
  return service({
    url: '/zSHRMEmployee/deleteZSHRMEmployee',
    method: 'delete',
    params
  })
}

// @Tags ZSHRMEmployee
// @Summary 批量删除hr用户
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除hr用户"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /zSHRMEmployee/deleteZSHRMEmployee [delete]
export const deleteZSHRMEmployeeByIds = (params) => {
  return service({
    url: '/zSHRMEmployee/deleteZSHRMEmployeeByIds',
    method: 'delete',
    params
  })
}

// @Tags ZSHRMEmployee
// @Summary 更新hr用户
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ZSHRMEmployee true "更新hr用户"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /zSHRMEmployee/updateZSHRMEmployee [put]
export const updateZSHRMEmployee = (data) => {
  return service({
    url: '/zSHRMEmployee/updateZSHRMEmployee',
    method: 'put',
    data
  })
}

// @Tags ZSHRMEmployee
// @Summary 用id查询hr用户
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ZSHRMEmployee true "用id查询hr用户"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /zSHRMEmployee/findZSHRMEmployee [get]
export const findZSHRMEmployee = (params) => {
  return service({
    url: '/zSHRMEmployee/findZSHRMEmployee',
    method: 'get',
    params
  })
}

// @Tags ZSHRMEmployee
// @Summary 分页获取hr用户列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取hr用户列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /zSHRMEmployee/getZSHRMEmployeeList [get]
export const getZSHRMEmployeeList = (params) => {
  return service({
    url: '/zSHRMEmployee/getZSHRMEmployeeList',
    method: 'get',
    params
  })
}
